//
//  SingletonFriendIfo.m
//  ShareNavigation
//
//  Created by 水木 傅 on 12-5-18.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "SingletonFriendInfo.h"

@implementation SingletonFriendInfo

@synthesize UUID,headPhoto,userID,signInTime,travelSignature,location,hasImage;

static SingletonFriendInfo *shareUserManager;

//---  获取单例  ---
+(SingletonFriendInfo *)shareManager
{
    
    @synchronized(self)
    {
        if(shareUserManager == nil)
        {
            shareUserManager = [[super alloc] init];
        }
    }
    return shareUserManager;
}

+(void) setValueFromInfo:(FriendTravelInfo *)info
{
    shareUserManager.UUID = info.UUID;
    shareUserManager.headPhoto = info.headPhoto;
    shareUserManager.userID = info.userID;
    shareUserManager.signInTime = info.signInTime;
    shareUserManager.travelSignature = info.travelSignature;
    shareUserManager.location = info.location;
}

@end
